home *** CD-ROM | disk | FTP | other *** search
/ MacWorld: Complete Mac Interactive / Macworld Complete Mac Interactive CD)(1994).iso / Software / Claris Corporation / MacWrite Pro / Samples / Scripting / MacWrite Pro (DocServer) next >
Text File  |  1993-12-13  |  22KB  |  542 lines

  1.  
  2. Verb    MacWrite.applyStyleSheetID
  3. Syntax    MacWrite.applyStyleSheetID(isCharacter, styleID)
  4. Parameters    isCharacter is true if the style sheet being applied is a character style sheet, false if it's a paragraph sheet.
  5. styleID is the ID number of the chosen style sheet, usually obtained using the getStyleSheetID verb
  6. Action    applies a custom style on the selected text
  7. Returns    True
  8. Examples    MacWrite.applyStyleSheetID(MacWrite.isCharacter, boldItalicStyle)
  9.     » True
  10. See Also    MacWrite.getStylesheetID
  11. MacWrite.listStyleSheets
  12.  
  13. Verb    MacWrite.bringToFront
  14. Syntax    MacWrite.bringToFront()
  15. Parameters    None
  16. Action    Brings MacWrite Pro to the front, if it is currently active
  17. Returns    True if MacWrite is running and is now frontmost, false if not
  18. Examples    MacWrite.bringToFront()
  19.     » True
  20. See Also    MacWrite.launch()
  21. MacWrite.isRunning()
  22.  
  23. Verb    MacWrite.changeAll
  24. Syntax    MacWrite.changeAll(fromString, toString)
  25. Parameters    fromString is the string to be replaced
  26. toString is the string (may be empty) which replaces the fromString occurrences
  27. Action    Starts searching from the beginning of the document for fromString.  For each and every occurrence it deletes that string and replaces the toString contents.
  28. Items in subscribed text are not replaced.
  29. Returns    The number of changed occurrences
  30. Examples    MacWrite.changeAll("MacWrite II", "MacWrite Pro")
  31.     » 18
  32. Notes    Searching by whole word and the case sensitivity are specifed using the verbs MacWrite.setWholeword and MacWrite.setCaseSensitive.
  33. See Also    MacWrite.setWholeword
  34. MacWrite.setCaseSensitive
  35. MacWrite.findNext
  36. MacWrite.find
  37.  
  38. Verb    MacWrite.chooseDocument
  39. Syntax    MacWrite.chooseDocument(documentID)
  40. Parameters    documentID is a number which refers to a specific MacWrite Pro document
  41. Action    brings the specified document to the front, and makes it the active document
  42. Returns    True if the document exists.  Invokes an error an returns false if the document doesn’t exist.
  43. Examples    MacWrite.chooseDocument(docID)
  44.     » True
  45. See Also    MacWrite.getDocumentID
  46. MacWrite.listDocumentIDs
  47.  
  48. Verb    MacWrite.closeDocument
  49. Syntax    MacWrite.closeDocument()
  50. Parameters    None
  51. Action    Closes the frontmost MacWrite document
  52. Returns    True if document was closed, false if the user canceled the close.
  53. Examples    MacWrite.closeDocument()
  54.     » True
  55. See Also    MacWrite.closeDocWithSave
  56.  
  57. Verb    MacWrite.closeDocWithSave
  58. Syntax    MacWrite.closeDocWithSave(saveOption)
  59. Parameters    saveOption is an enumerator specifying that the document should be saved (MacWrite.kYes), should not be saved (kNo) or the user should be asked (kAsk)
  60. Action    Closes the frontmost document, bringing the application forward if necessary, with the save option as supplied.
  61. Returns    False - means the user canceled the save.
  62. True - means the document was closed successfully
  63. Examples    MacWrite.closeDocWithSave(MacWrite.kNo)
  64.     » true
  65. See Also    MacWrite.closeDocument
  66.  
  67. Verb    MacWrite.closeMergeDataFile
  68. Syntax    MacWrite.closeMergeDataFile()
  69. Parameters    None
  70. Action    Closes any open merge data file, no error if there isn't one open already.
  71. Returns    True
  72. Examples    MacWrite.closeMergeDataFile()
  73.     » True
  74. See Also    MacWrite.doMerge
  75. MacWrite.openmergedatafile
  76. MacWrite.setMergeRange
  77.  
  78. Verb    MacWrite.copy
  79. Syntax    MacWrite.copy()
  80. Parameters    None
  81. Action    Instructs MacWrite to copy the selected item(s) and put them on the clipbard
  82. Returns    True
  83. Examples    MacWrite.copy()
  84.     » True
  85. See Also    MacWrite.cut
  86. MacWrite.paste
  87.  
  88. Verb    MacWrite.countDocuments
  89. Syntax    MacWrite.countDocuments()
  90. Parameters    None
  91. Action    Requests the number of MacWrite Pro documents currently open
  92. Returns    A number containing the number of documents open and visible
  93. Examples    MacWrite.countDocuments()
  94.     » 3
  95. Notes    This does not count the clipboard window, nor the floaters since they are not accessible through Apple Events
  96.  
  97. Verb    MacWrite.cut
  98. Syntax    MacWrite.cut()
  99. Parameters    None
  100. Action    Instructs MacWrite to cut the selected item(s) and put them on the clipbard
  101. Returns    True
  102. Examples    MacWrite.cut()
  103.     » True
  104. See Also    MacWrite.cut
  105. MacWrite.paste
  106.  
  107. Verb    MacWrite.doMenuItem
  108. Syntax    MacWrite.doMenuItem(menuItemNumber)
  109. Parameters    menuItemNumber is an enumerated item, found in the table "MacWrite.menuIDs"
  110. The value represents the menu item you wish to select
  111. Action    If the item you're choosing is enabled, the item is selected
  112. Returns    True if the menu item was enabled, false if not.
  113. Examples    MacWrite.doMenuItem(MacWrite.menuIDs.showTextPalette)
  114.     » True  - shows or hides the text palette
  115. MacWrite.doMenuItem(MacWrite.menuIDs.tileWindows)
  116.     » True  - tiled Windows
  117. with MacWrite, menuIDs
  118.     doMenuItem(selectAll)
  119.     doMenuItem(size12point)
  120.     doMenuItem(bold)
  121.  
  122. Verb    MacWrite.doMerge
  123. Syntax    MacWrite.doMerge(target)
  124. Parameters    target specifies the requested output device, i.e. printer or document.
  125. Action    Using the front most document as a template, merges data from the open merge data file into a new document, or sends the output to the printer.
  126. Returns    True
  127. Examples    MacWrite.doMerge()
  128.     » True
  129. See Also    MacWrite.closeMergeDataFile
  130. MacWrite.openmergedatafile
  131. MacWrite.setMergeRange
  132.  
  133. Verb    MacWrite.find
  134. Syntax    MacWrite.find(string)
  135. Parameters    string is the text to be searched for, from the current selection point onward, wrapping through the document
  136. Action    Locates and reveals the string in the document
  137. Returns    True if found, false if no occurrences were found
  138. Examples    MacWrite.find("Word is user friendly")
  139.     » False
  140. MacWrite.find("MacWrite is user friendly")
  141.     » True
  142. Notes    Searching by whole word and the case sensitivity are specifed using the verbs MacWrite.setWholeword and MacWrite.setCaseSensitive.
  143. See Also    MacWrite.setWholeword
  144. MacWrite.setCaseSensitive
  145. MacWrite.findNext
  146. MacWrite.changeAll
  147.  
  148. Verb    MacWrite.findNext
  149. Syntax    MacWrite.findNext()
  150. Parameters    None
  151. Action    Repeats last find
  152. Returns    True if found again, false if not
  153. Examples    MacWrite.findNext()
  154.     » True
  155. See Also    MacWrite.setWholeword
  156. MacWrite.setCaseSensitive
  157. MacWrite.find
  158. MacWrite.changeAll
  159.  
  160. Verb    MacWrite.findNextStyleSheet
  161. Syntax    MacWrite.findNextstylesheetinlist(isCharacter)
  162. Parameters    isCharacter is a boolean flag which specifies MacWrite should search for the next character or paragraph style sheet
  163. Action    Using the user defined list passed by the verb MacWrite.setStyleSheetSearchList, this verb causes MacWrite to search from the current caret position.
  164. When a style sheet on the defined list is located, the selection is set to the text defiend by the sheet, and the ID of the located sheet is returned.
  165. Returns    A number which is the ID of the style sheet located.  -2 indicates no occurrence was found.
  166. Examples    MacWrite.findNextstylesheetinlist(True)
  167.     » 3
  168. Notes    This verb, unlike Find, does not wrap at the end of the document
  169. See Also    MacWrite.setStyleSheetSearchList
  170.  
  171. Verb    MacWrite.getChars
  172. Syntax    MacWrite.getChars()
  173. Parameters    None
  174. Action    Returns the currently selected text
  175. Returns    String containing current selection
  176. Examples    MacWrite.getChars()
  177.     » This text was selected when I issued the getChars command !
  178. See Also    MacWrite.putChars
  179. MacWrite.setSelection
  180. MacWrite.getSelection
  181. MacWrite.textLength
  182.  
  183. Verb    MacWrite.getDocumentID
  184. Syntax    MacWrite.getDocumentID()
  185. Parameters    None
  186. Action    Requests the document ID of the front most document
  187. Returns    A number representing the current document.  If no documents are open, invokes an error ("No such document")
  188. Examples    MacWrite.getDocumentID()
  189.     » 8
  190. See Also    MacWrite.chooseDocument
  191. MacWrite.listDocumentIDs
  192.  
  193. Verb    MacWrite.getDocumentName
  194. Syntax    MacWrite.getDocumentName()
  195. Parameters    None
  196. Action    Requests the name of the front most document
  197. Returns    A string containing the name of the front most document.  This is an empty string if no documents are open
  198. Examples    MacWrite.getDocumentName()
  199.     » "The World According To Garp"
  200. See Also    MacWrite.getDocumentID
  201. MacWrite.countDocuments
  202.  
  203. Verb    MacWrite.getPageNumber
  204. Syntax    MacWrite.getPageNumber()
  205. Parameters    None
  206. Action    Returns the page number containing the user selection.  If the selection spans pages, it returns the first page.
  207. Returns    A string containing the page number.
  208. Examples    MacWrite.getPageNumber()
  209.     » "3"
  210. Notes    -2 indicates that no document was open, or there was no text selected.
  211. -1 indicates that the selection is in an endnote page
  212.  
  213. Verb    MacWrite.getParagraphSel
  214. Syntax    MacWrite.getParagraphSel(paragraphNumber,addrStart, addrEnd)
  215. Parameters    paragraphNumber is the number of the paragraph you're interested in, the first paragraph in the document is number 0
  216. addrStart is the address of an object where you wish to store the starting location of the paragraph in the front most document
  217. addrEnd is the address of an object where you wish to store the ending location of the paragraph in the front most document
  218. Action    Identifies the requested paragraph and returns the starting and ending location in addrStart and addrEnd
  219. Returns    true
  220. Examples    MacWrite.getParagraphSel(0, @start, @end)
  221.     » true
  222. MacWrite.getParagraphSel(-1, @start, @end)
  223.     » true
  224. Notes    Specifying a paragraph number of -1 will return the starting and ending offsets of the currently selected paragraph
  225. See Also    MacWrite.getSelection
  226. MacWrite.getChars
  227.  
  228. Verb    MacWrite.getSelection
  229. Syntax    MacWrite.getSelection(addrStart, addrEnd)
  230. Parameters    addrStart is the address of an object where you wish to store the starting location of the selection in the front most document
  231. addrEnd is the address of an object where you wish to store the ending location of the selection in the front most document
  232. Action    Report the starting and ending character position of the current user selection
  233. Returns    True
  234. Examples    MacWrite.getSelection(@start, @end)
  235. msg(start + ", "+ end)
  236.     » true
  237. The main window displays "0, 12"
  238. See Also    MacWrite.getChars
  239. MacWrite.setSelection
  240.  
  241. Verb    MacWrite.getStylesheetID
  242. Syntax    MacWrite.getStylesheetID(isCharacter, sheetName)
  243. Parameters    isCharacter is a boolean specifying if the sheet being requested is a character or paragraph sheet
  244. sheetName is a string containing th ename of the style sheet
  245. Action    Searches the appropriate style list for the specific style sheet name
  246. Returns    A number representing the index entry of the named style sheet in the appropriat elist.  -1 if not found
  247. Examples    MacWrite.getStylesheetID(isParagraph, "Header")
  248.     » 6
  249. Notes    The name of the style sheet is not case sensitive
  250. The number is not persistent - if the user modifies the style sheet list by adding or deleting styles, this number can change
  251. See Also    MacWrite.listStyleSheets
  252.  
  253. Verb    MacWrite.getVersion
  254. Syntax    MacWrite.getVersion()
  255. Parameters    None
  256. Action    Returns the version of script handling in the running version of MacWrite Pro
  257. Returns    A long ineteger with the major version in the high word, and the minor version information in the lower word.  For example, if this was version 1.02, this would return 65538. 
  258. Examples    MacWrite.getVersion()
  259.     » 65537 (1.01)
  260. MacWrite.getVersion()
  261.     » 13172737 (Demo of 1.01, 201.01)
  262. Notes    MacWrite Pro 1.0, which shipped with some very limited Apple Event support returns 1 (0.1).  We are currently shipping 1.01
  263. A demo version of MacWrite Pro will return a major version of 200 higher than it’s “real” version.
  264.  
  265. Verb    MacWrite.insertFile
  266. Syntax    MacWrite.insertFile(path)
  267. Parameters    path is the path to the file you wish to insert into the current MacWrite document
  268. Action    Read the contents of a particular file and place them at the current insertion point, replacing the current seletion if any.
  269. Returns    True if the document was inserted, false if not.
  270. Examples    MacWrite.insertFile(":Examples:insert this file")
  271.     » true
  272.  
  273. Verb    MacWrite.isRunning
  274. Syntax    MacWrite.isRunning()
  275. Parameters    None
  276. Action    Determines if MacWrite Pro is running
  277. Returns    True if MacWrite Pro is running, false if not
  278. Examples    MacWrite.isRunning()
  279.     » True
  280.  
  281. Verb    MacWrite.launch
  282. Syntax    MacWrite.launch()
  283. Parameters    None
  284. Action    If MacWrite is not already running, this verb launches MacWrite
  285. Returns    True if MacWrite is running, false if it couldn’t be found
  286. Examples    MacWrite.launch()
  287.     » True
  288.  
  289. Verb    MacWrite.listDocumentIDs
  290. Syntax    MacWrite.listDocumentIDs()
  291. Parameters    None
  292. Action    A request for a list of the ID of each currently open document
  293. Returns    A list of document IDs
  294. Examples    MacWrite.listDocumentIDs()
  295.     » 1 3 as a list…
  296. Notes    Document IDs are unique and start from 1 each time you run MacWrite Pro.
  297. See Also    MacWrite.getDocumentID
  298. MacWrite.chooseDocument
  299.  
  300. Verb    MacWrite.listStyleSheets
  301. Syntax    MacWrite.listStyleSheets(isCharacter)
  302. Parameters    isCharacter is a boolean which should be set to tru for character styles or false for paragraphs
  303. Action    Compiles a list of all the specified custom styles and makes a list of them
  304. Returns    A list of strings containing the names of the specified custom styles
  305. Examples    MacWrite.listStyleSheets(true)
  306.     » "Header" "Footer" "Red 14 point" as a list
  307. See Also    MacWrite.getStylesheetID
  308.  
  309. Verb    MacWrite.newDocument
  310. Syntax    MacWrite.newDocument()
  311. Parameters    None
  312. Action    Creates a new document.
  313. Returns    True if a document was created and opened, false if not.
  314. Examples    MacWrite.newDocument()
  315.     » True
  316.  
  317. Verb    MacWrite.openDocument
  318. Syntax    MacWrite.openDocument(path)
  319. Parameters    path is the path to the file you wish to open in MacWrite
  320. Action    Asks MacWrite Pro to open the specified document. 
  321. Returns    True if the document was found and opened.  An appropriate error is returned if the document cannot be opened.
  322. Examples    MacWrite.openDocument("My Hard Disk:Samples:Example document")
  323.     » True
  324.  
  325. Verb    MacWrite.openMergeDataFile
  326. Syntax    MacWrite.openmergedatafile(path)
  327. Parameters    path is the path to the mail merge data file you wish to open
  328. Action    Opens the specific data file, and opens the mail merge palette if not already open
  329. Returns    True if file opened, false if an error occurred
  330. Examples    MacWrite.openmergedatafile(":Examples:Merge.data")
  331.     » True
  332. See Also    MacWrite.closeMergeDataFile
  333. MacWrite.doMerge
  334.  
  335. Verb    MacWrite.paste
  336. Syntax    MacWrite.paste()
  337. Parameters    None
  338. Action    Pastes the contents of the clipboard at the current selection, erasing anything currenlty selected.
  339. Returns    True
  340. Examples    MacWrite.paste()
  341.     » True
  342. See Also    MacWrite.copy
  343. MacWrite.cut
  344.  
  345. Verb    MacWrite.printDocument
  346. Syntax    MacWrite.printDocument(path)
  347. Parameters    path is the path to the file you wish MacWrite to print.
  348. Action    Instructs MacWrite to open and print the document at path.
  349. Returns    True if the document was found and printed, an error if not.
  350. Examples    MacWrite.printDocument(":Samples:Example document")
  351.     » True
  352.  
  353. Verb    MacWrite.printerOptions.setCollation
  354. Syntax    MacWrite.printerOptions.setCollation(flag)
  355. Parameters    flag is a Boolean value
  356. Action    Turns the printer's collation on or off
  357. Returns    True
  358. Examples    MacWrite.printerOptions.setCollation(true)
  359.     » True
  360. See Also    MacWrite.printerOptions.setNotes
  361. MacWrite.printerOptions.setPageSides
  362.  
  363. Verb    MacWrite.printerOptions.setNotes
  364. Syntax    MacWrite.printerOptions.setNotes(flag)
  365. Parameters    flag is a Boolean specifying that notes be printed or not
  366. Action    If set to true, any notes will be printed
  367. Returns    True
  368. Examples    MacWrite.printerOptions.setNotes(true)
  369.     » True
  370. See Also    MacWrite.printerOptions.setCollation
  371. MacWrite.printerOptions.setPageSides
  372.  
  373. Verb    MacWrite.printerOptions.setPageRange
  374. Syntax    MacWrite.printerOptions.setPageRange(start, end)
  375. Parameters    start is the first page you wish to print
  376. end is the last page you want to print
  377. Action    Informs MacWrite to only print the pages in the specified range
  378. Returns    True
  379. Examples    MacWrite.printerOptions.setPageRange(2, 3)
  380.     » True
  381. See Also    MacWrite.printerOptions.setPageSides
  382.  
  383. Verb    MacWrite.printerOptions.setPageSides
  384. Syntax    MacWrite.printerOptions.setPageSides(flag)
  385. Parameters    flag is a number which specifies which sides of the pages to print, 0 = All, 1 = Left, 2 = Right
  386. Action    Requests that only specific pages are printed
  387. Returns    True
  388. Examples    MacWrite.printerOptions.setPageSides(2)
  389.     » True
  390.  
  391. Verb    MacWrite.printerOptions.setReverse
  392. Syntax    MacWrite.printerOptions.setReverse(flag)
  393. Parameters    flag is a Boolean specifying direction of printing
  394. Action    Informs MacWrite to print last page first (true) or first page first (false)
  395. Returns    True
  396. Examples    MacWrite.printerOptions.setReverse(false)
  397.     » True
  398.  
  399. Verb    MacWrite.printerOptions.setToDefault
  400. Syntax    MacWrite.printerOptions.setToDefault()
  401. Parameters    None
  402. Action    Sets all printer options to their default settings, and represses the print dialog on the next Print command from an Apple Event
  403. Returns    True
  404. Examples    MacWrite.printerOptions.setToDefault()
  405.     » True
  406.  
  407. Verb    MacWrite.putChars
  408. Syntax    MacWrite.putChars(string)
  409. Parameters    string contains the text you wish to insert
  410. Action    Replaces selection in the frontmost document with contents of string.  If the selection is empty, places the contents at the current location.
  411. Returns    True, unless an error occurs while trying to place the characters
  412. Examples    MacWrite.putChars
  413. See Also    MacWrite.getChars
  414. MacWrite.setSelection
  415. MacWrite.getSelection
  416.  
  417. Verb    MacWrite.quit
  418. Syntax    MacWrite.quit()
  419. Parameters    None
  420. Action    Carries out all actions associated with quitting MacWrite. 
  421. Returns    True if MacWrite has quit, False if the user cancels the quit
  422. Examples    MacWrite.quit()
  423.     » True
  424.  
  425. Verb    MacWrite.saveDocument
  426. Syntax    MacWrite.saveDocument()
  427. Parameters    None
  428. Action    Saves the frontmost document
  429. Returns    True if document was saved, false if not.
  430. Examples    MacWrite.saveDocument()
  431.     » True
  432. Notes    If the document has not been saved before, this verb will cause MacWrite to ask the user if she wishes to save the file
  433. Use MacWrite.saveDocumentAs with a path name to avoid this dialog.
  434. See Also    MacWrite.saveDocumentAs
  435.  
  436. Verb    MacWrite.saveDocumentAs
  437. Syntax    MacWrite.saveDocumentAs(path)
  438. Parameters    path is the path to the location where you wish MacWrite to save the file
  439. Action    Saves the current file using the specified path, replacing any file that existed with that name
  440. Returns    True if document was saved, false if not
  441. Examples    MacWrite.saveDocumentAs(":Samples:Example document")
  442.     » True
  443. See Also    MacWrite.saveDocument
  444.  
  445. Verb    MacWrite.selectMainBody
  446. Syntax    MacWrite.selectMainBody()
  447. Parameters    None
  448. Action    Ensures that the selection is in the main body of the document
  449. Returns    True if a document was open
  450. Examples    MacWrite.selectMainBody()
  451.     » True
  452.  
  453. Verb    MacWrite.selectParagraph
  454. Syntax    MacWrite.selectParagraph(n)
  455. Parameters    n is the number of the paragraph to select
  456. Action    Sets the user selection to the "nth" paragraph, starting with 0 as the first in the main body
  457. Returns    True - paragraph was selected.
  458. Examples    MacWrite.selectParagraph(2)
  459.     » True
  460. Notes    Passing -1 will select the paragraph containing the current user selection
  461.  
  462. Verb    MacWrite.setCaseSensitive
  463. Syntax    MacWrite.setCaseSensitive(flag)
  464. Parameters    flag is a boolean value stating whether future searches should be case sensitive or not
  465. Action    Setting this flag to true cause future searches to match the case during the search
  466. Returns    Previous setting of this flag
  467. Examples    MacWrite.setCaseSensitive()
  468.     » True
  469. See Also    MacWrite.setWholeword
  470. MacWrite.find
  471. MacWrite.findNext
  472. MacWrite.changeAll
  473.  
  474. Verb    MacWrite.setMergeRange
  475. Syntax    MacWrite.setMergeRange(start, end)
  476. Parameters    start is the first record in the data file to be merged
  477. end is the last record in the data file to be merged
  478. Action    Specifies a range of records to be merged
  479. Returns    True
  480. Examples    MacWrite.setMergeRange(5, 25)
  481.     » True
  482.  
  483. Verb    MacWrite.setPrinterOptions
  484. Syntax    MacWrite.setPrinterOptions(starting, ending, reverse, notes, bothsides, collation, copies)
  485. Parameters    starting is a long integer specifying the first page number to print
  486. ending is a long integer specifying the last page number to print
  487. reverse is a boolean stating order of pages to print
  488. notes is a boolean specifying whether notes should be printed
  489. bothsides is a number specifying which pages to print: 0= All, 1 = Left, 2 = Right
  490. collations is a boolean specifying whether multiple copies should be collated
  491. copies is a number indicating the number of copies to be printed
  492. Action    Sets all editable values in the print dialog to the specified value
  493. Returns    True if all values were set
  494. Examples    MacWrite.setPrinterOptions(1, 6, true, false, 0, false, 1)
  495.     » True
  496.  
  497. Verb    MacWrite.setSelection
  498. Syntax    MacWrite.setSelection(start, end)
  499. Parameters    start is a number indicating the character position within the main body in which the selection should start.
  500. end is a number indicating the character position within the main body in which the selection should end.
  501. Action    Selects the text begining with the character at start, up to and including the character at end.
  502. Returns    True
  503. Examples    MacWrite.setSelection(0, 12)
  504.     » true
  505. See Also    MacWrite.getChars
  506. MacWrite.getSelection
  507. MacWrite.textLength
  508.  
  509. Verb    MacWrite.setStyleSheetSearchList
  510. Syntax    MacWrite.setStyleSheetSearchList(isCharacter, list)
  511. Parameters    isCharacter is true if you're building a list of character sheets, false for paragraph styles
  512. list is a list of the style sheet IDs you wish to search for
  513. Action    Instructs MacWrite to build an internal list of style sheets to search for using the findNextStyleSheet verb
  514. Returns    True
  515. Examples    MacWrite.setStyleSheetSearchList(theList)
  516.     » True
  517. See Also    
  518.  
  519. Verb    MacWrite.setWholeword
  520. Syntax    MacWrite.setWholeword(flag)
  521. Parameters    flag is a boolean specifying you wish to search for whole words (true) or not (false)
  522. Action    Setting this flag true causes all the find verbs to search using whole words
  523. Returns    Previous setting of this flag.
  524. Examples    MacWrite.setWholeword(false)
  525.     » True
  526. See Also    MacWrite.find
  527. MacWrite.setCaseSensitive
  528. MacWrite.findNext
  529. MacWrite.changeAll
  530.  
  531. Verb    MacWrite.textLength
  532. Syntax    MacWrite.textLength()
  533. Parameters    None
  534. Action    Counts the characters contained within the main body of the frontmost document
  535. Returns    A number indicating the number of characters in the main body.
  536. Examples    MacWrite.textLength()
  537.     » 16388
  538. Notes    MacWrite Pro has special characters which are counted as 1 character, but may be returned through getChars as either no characters or more than one.  So the count may not be the exact number of characters you will get back using getChars.
  539. For example, the date and time characters only occupy one character, yet will return many.  Inline frames occupy one character space, and will be returned by getChars as a space.
  540. See Also    MacWrite.setSelection
  541. MacWrite.getChars
  542.